package com.sugar.subscribe.course.module.business.dal.dataobject.coachcomment;

import com.sugar.subscribe.course.framework.mybatis.core.type.StringListTypeHandler;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.sugar.subscribe.course.framework.mybatis.core.dataobject.BaseDO;

/**
 * 评论 DO
 *
 * @author Ysugar
 */
@TableName(value = "business_coach_comment", autoResultMap = true)
@KeySequence("business_coach_comment_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CoachCommentDO extends BaseDO {

    /**
     * ID
     */
    @TableId
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 教练ID
     */
    private Long coachId;
    /**
     * 订单ID
     */
    private Long orderId;
    /**
     * 评论内容
     */
    private String content;
    /**
     * 评论图片
     */
    @TableField(typeHandler = StringListTypeHandler.class)
    private List<String> images;
    /**
     * 评分
     */
    private BigDecimal score;
    /**
     * 审核状态（字典：business_audit_status）
     */
    private Integer auditStatus;
    /**
     * 拒绝原因
     */
    private String refuseCause;
}
